﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LatteCoffee.coffeemodel
{
    public class CoffeeMassageModel
    {
        /// <summary>
        /// 制作饮品ID
        /// </summary>
        public class CoffeeProductID
        {
            public string productId { get; set; }
        }
        /// <summary>
        /// 咖啡机状态
        /// </summary>
        public class CoffeeMassage
        {
            public object activeErrors { get; set; }
            public OutletsRinsing outletsRinsing { get; set; }
            /// <summary>
            /// 资源状态
            /// </summary>
            public ResourceState resourceState { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public ResourcesLocked resourcesLocked { get; set; }
            /// <summary>
            /// EnergySavingMode 节能模式
            /// - Init   设备初始化
            /// - Ready  空闲中
            ///- Busy    繁忙中
            /// - NeedsMaintenance  需要维修
            /// - InServiceMenu  服务菜单活动中
            /// </summary>
            public string status { get; set; }

        }
        public class xintiao
        {
            public string code { get; set; }
            public string tag { get; set; }
            public string msg { get; set; }
        }
        public class OutletsRinsing
        {
            /// <summary>
            /// 如果咖啡正在冲洗 true
            /// </summary>
            public string coffee { get; set; }
            /// <summary>
            /// 如果热介质正在冲洗
            /// </summary>
            public string coldMedia { get; set; }
            /// <summary>
            /// 如果是瞬间冲洗 true
            /// </summary>
            public string instant { get; set; }
            /// <summary>
            /// 如果介质正在冲洗
            /// </summary>
            public string media { get; set; }
            /// <summary>
            /// 如果牛奶正在冲洗 true
            /// </summary>
            public string milk { get; set; }
            /// <summary>
            /// 蒸汽棒正在清洗  true
            /// </summary>
            public string steam { get; set; }
        }
        public class ResourceState
        {
            public string containerCoffeeGrounds { get; set; }
            public string grinderPos1 { get; set; }
            public string instantPos4 { get; set; }
            public string milkPos1 { get; set; }
        }
        public class ResourcesLocked
        {
            /// <summary>
            /// coffee是锁定得 true
            /// </summary>
            public string coffee { get; set; }
            public string container1 { get; set; }
            public string container4 { get; set; }
            public string containerCoffeeGround { get; set; }
            public string containerMilk1 { get; set; }
            public string containerMilk2 { get; set; }
            /// <summary>
            /// 门是关的  true
            /// </summary>
            public string door { get; set; }
            /// <summary>
            /// 奶 true
            /// </summary>
            public string milk { get; set; }
            /// <summary>
            /// 咖啡粉是锁住得 true
            /// </summary>
            public string powder { get; set; }
            /// <summary>
            /// 蒸汽是锁住得 true
            /// </summary>
            public string steam { get; set; }
            /// <summary>
            /// 水是锁住得  true
            /// </summary>
            public string water { get; set; }
        }
    }
}
